package com.xnew.bean.common;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;

@TableName("el_au_user_role")
public class AuUserRole implements Serializable {

    @TableId
    private String aurId;//id

    private String auId;//用户编号

    @TableField(exist = false)
    private String arName;//角色名称

    private String arId;//角色编号

    private String aurCreateUser;//创建人

    private String aurCreateTime;//创建时间

    private String aurType;//用户类型

    private static final long serialVersionUID = 1L;

    //字典
    @TableField(exist = false)
    private Map<String, Object> dictNameResult = new HashMap<String, Object>();

    public Map<String, Object> getDictNameResult() {
        return dictNameResult;
    }

    public void setDictNameResult(Map<String, Object> dictNameResult) {
        this.dictNameResult = dictNameResult;
    }

    public String[] buildIncludeField(){
        return new String[]{"aurType"};
    }

    public String[] buildIncludeType(){
        return new String[]{"DG0090"};
    }

    public String getAurType() {
        return aurType;
    }

    public void setAurType(String aurType) {
        this.aurType = aurType;
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public String getAurId() {
        return aurId;
    }

    public void setAurId(String aurId) {
        this.aurId = aurId == null ? null : aurId.trim();
    }

    public String getAuId() {
        return auId;
    }

    public void setAuId(String auId) {
        this.auId = auId == null ? null : auId.trim();
    }

    public String getArId() {
        return arId;
    }

    public void setArId(String arId) {
        this.arId = arId == null ? null : arId.trim();
    }

    public String getAurCreateUser() {
        return aurCreateUser;
    }

    public void setAurCreateUser(String aurCreateUser) {
        this.aurCreateUser = aurCreateUser == null ? null : aurCreateUser.trim();
    }

    public String getAurCreateTime() {
        return aurCreateTime;
    }

    public void setAurCreateTime(String aurCreateTime) {
        this.aurCreateTime = aurCreateTime == null ? null : aurCreateTime.trim();
    }

    public String getArName() {
        return arName;
    }

    public void setArName(String arName) {
        this.arName = arName;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", aurId=").append(aurId);
        sb.append(", auId=").append(auId);
        sb.append(", arId=").append(arId);
        sb.append(", aurCreateUser=").append(aurCreateUser);
        sb.append(", aurCreateTime=").append(aurCreateTime);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}